From: Keir Fraser Date: Tue, 31 Mar 2009 10:55:42 +0000 (+0100) Subject: tools build: No need for LFS flags on NetBSD. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13989^2~46 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=b406180c4829a7fa509e03552254bef18b0cc606;p=xen.git tools build: No need for LFS flags on NetBSD. Signed-off-by: Christoph Egger --- diff --git a/tools/Rules.mk b/tools/Rules.mk index fbd69ea215..53434d51fc 100644 --- a/tools/Rules.mk +++ b/tools/Rules.mk @@ -33,10 +33,12 @@ CFLAGS += -D__XEN_TOOLS__ CFLAGS += -MMD -MF .$(@F).d DEPS = .*.d +ifneq ($(XEN_OS),NetBSD) # Enable implicit LFS support *and* explicit LFS names. CFLAGS += $(shell getconf LFS_CFLAGS) CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE LDFLAGS += $(shell getconf LFS_LDFLAGS) +endif # 32-bit x86 does not perform well with -ve segment accesses on Xen. CFLAGS-$(CONFIG_X86_32) += $(call cc-option,$(CC),-mno-tls-direct-seg-refs)